home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / games / mac / __the_arcade__ / mr._ball_s_game / card_7076.txt < prev    next >
Text File  |  1991-02-12  |  7KB  |  313 lines

  1. -- card: 7076 from stack: in._ball_s_game
  2. -- bmap block id: 7180
  3. -- flags: 0000
  4. -- background id: 2745
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on idle
  8.   put the loc of cd btn 8 into spikyLoc
  9.   put calcloc(spikyloc) into spikyloc
  10.   set the loc of cd btn 8 to spikyloc
  11.   put the loc of cd btn 9 into spikyLoc
  12.   put calcloc(spikyloc) into spikyloc
  13.   set the loc of cd btn 9 to spikyloc
  14.   pass idle
  15. end idle
  16.  
  17. on opencard
  18.   set the loc of cd btn 8 to random(512),random(342)
  19.   set the loc of cd btn 9 to random(512),random(342)
  20.   pass opencard
  21. end opencard
  22.  
  23. function calcloc spikyloc
  24. put the loc of bg btn 1 into ballLoc
  25. put item 1 of ballloc - item 1 of spikyloc into H
  26. put item 2 of ballloc - item 2 of spikyloc into v
  27.  
  28. if H > 0 then put 20  into h
  29. if h < 0 then put -20 into h
  30. if v > 0 then put 20  into v
  31. if v < 0 then put -20 into v
  32.  
  33. add h to item 1 of spikyloc
  34. add v to item 2 of spikyloc
  35. return spikyloc
  36. end calcloc
  37.  
  38.  
  39. -- part 1 (button)
  40. -- low flags: 00
  41. -- high flags: 0002
  42. -- rect: left=27 top=49 right=103 bottom=164
  43. -- title width / last selected line: 0
  44. -- icon id / first selected line: 13414 / 13414
  45. -- text alignment: 1
  46. -- font id: 0
  47. -- text size: 12
  48. -- style flags: 0
  49. -- line height: 16
  50. -- part name: New Button
  51.  
  52.  
  53. -- part 2 (button)
  54. -- low flags: 00
  55. -- high flags: 0002
  56. -- rect: left=213 top=50 right=104 bottom=350
  57. -- title width / last selected line: 0
  58. -- icon id / first selected line: 13414 / 13414
  59. -- text alignment: 1
  60. -- font id: 0
  61. -- text size: 12
  62. -- style flags: 0
  63. -- line height: 16
  64. -- part name: New Button
  65.  
  66.  
  67. -- part 3 (button)
  68. -- low flags: 00
  69. -- high flags: 0002
  70. -- rect: left=128 top=135 right=189 bottom=265
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 13414 / 13414
  73. -- text alignment: 1
  74. -- font id: 0
  75. -- text size: 12
  76. -- style flags: 0
  77. -- line height: 16
  78. -- part name: New Button
  79.  
  80.  
  81. -- part 4 (button)
  82. -- low flags: 00
  83. -- high flags: 0002
  84. -- rect: left=319 top=139 right=193 bottom=456
  85. -- title width / last selected line: 0
  86. -- icon id / first selected line: 13414 / 13414
  87. -- text alignment: 1
  88. -- font id: 0
  89. -- text size: 12
  90. -- style flags: 0
  91. -- line height: 16
  92. -- part name: New Button
  93.  
  94.  
  95. -- part 5 (button)
  96. -- low flags: 00
  97. -- high flags: 0002
  98. -- rect: left=375 top=48 right=102 bottom=512
  99. -- title width / last selected line: 0
  100. -- icon id / first selected line: 13414 / 13414
  101. -- text alignment: 1
  102. -- font id: 0
  103. -- text size: 12
  104. -- style flags: 0
  105. -- line height: 16
  106. -- part name: New Button
  107.  
  108.  
  109. -- part 6 (button)
  110. -- low flags: 00
  111. -- high flags: 0002
  112. -- rect: left=21 top=205 right=259 bottom=158
  113. -- title width / last selected line: 0
  114. -- icon id / first selected line: 13414 / 13414
  115. -- text alignment: 1
  116. -- font id: 0
  117. -- text size: 12
  118. -- style flags: 0
  119. -- line height: 16
  120. -- part name: New Button
  121.  
  122.  
  123. -- part 7 (button)
  124. -- low flags: 00
  125. -- high flags: 0002
  126. -- rect: left=229 top=214 right=268 bottom=366
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 13414 / 13414
  129. -- text alignment: 1
  130. -- font id: 0
  131. -- text size: 12
  132. -- style flags: 0
  133. -- line height: 16
  134. -- part name: New Button
  135.  
  136.  
  137. -- part 8 (button)
  138. -- low flags: 00
  139. -- high flags: 0000
  140. -- rect: left=210 top=87 right=120 bottom=243
  141. -- title width / last selected line: 0
  142. -- icon id / first selected line: 30695 / 30695
  143. -- text alignment: 1
  144. -- font id: 0
  145. -- text size: 12
  146. -- style flags: 0
  147. -- line height: 16
  148. -- part name: Special
  149. ----- HyperTalk script -----
  150. on stuff
  151.   bump
  152.   opencard
  153. end stuff
  154.  
  155.  
  156.  
  157. -- part 10 (button)
  158. -- low flags: 00
  159. -- high flags: 0000
  160. -- rect: left=138 top=93 right=126 bottom=171
  161. -- title width / last selected line: 0
  162. -- icon id / first selected line: 30695 / 30695
  163. -- text alignment: 1
  164. -- font id: 0
  165. -- text size: 12
  166. -- style flags: 0
  167. -- line height: 16
  168. -- part name: Special
  169. ----- HyperTalk script -----
  170. on stuff
  171.   bump
  172.   opencard
  173. end stuff
  174.  
  175.  
  176.  
  177. -- part 11 (button)
  178. -- low flags: 00
  179. -- high flags: 0000
  180. -- rect: left=129 top=179 right=211 bottom=173
  181. -- title width / last selected line: 0
  182. -- icon id / first selected line: 13417 / 13417
  183. -- text alignment: 1
  184. -- font id: 0
  185. -- text size: 12
  186. -- style flags: 0
  187. -- line height: 16
  188. -- part name: coin
  189.  
  190.  
  191. -- part 12 (button)
  192. -- low flags: 00
  193. -- high flags: 0000
  194. -- rect: left=314 top=188 right=220 bottom=358
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 13417 / 13417
  197. -- text alignment: 1
  198. -- font id: 0
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: coin
  203.  
  204.  
  205. -- part 13 (button)
  206. -- low flags: 00
  207. -- high flags: 0000
  208. -- rect: left=172 top=68 right=100 bottom=216
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 13417 / 13417
  211. -- text alignment: 1
  212. -- font id: 0
  213. -- text size: 12
  214. -- style flags: 0
  215. -- line height: 16
  216. -- part name: coin
  217.  
  218.  
  219. -- part 14 (button)
  220. -- low flags: 80
  221. -- high flags: 0000
  222. -- rect: left=344 top=65 right=97 bottom=388
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 13417 / 13417
  225. -- text alignment: 1
  226. -- font id: 0
  227. -- text size: 12
  228. -- style flags: 0
  229. -- line height: 16
  230. -- part name: coin
  231.  
  232.  
  233. -- part 15 (button)
  234. -- low flags: 00
  235. -- high flags: 0000
  236. -- rect: left=0 top=217 right=249 bottom=44
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 13417 / 13417
  239. -- text alignment: 1
  240. -- font id: 0
  241. -- text size: 12
  242. -- style flags: 0
  243. -- line height: 16
  244. -- part name: coin
  245.  
  246.  
  247. -- part 16 (button)
  248. -- low flags: 00
  249. -- high flags: 0000
  250. -- rect: left=446 top=219 right=251 bottom=490
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 13417 / 13417
  253. -- text alignment: 1
  254. -- font id: 0
  255. -- text size: 12
  256. -- style flags: 0
  257. -- line height: 16
  258. -- part name: coin
  259.  
  260.  
  261. -- part 17 (button)
  262. -- low flags: 00
  263. -- high flags: 0000
  264. -- rect: left=241 top=246 right=278 bottom=285
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 13417 / 13417
  267. -- text alignment: 1
  268. -- font id: 0
  269. -- text size: 12
  270. -- style flags: 0
  271. -- line height: 16
  272. -- part name: coin
  273.  
  274.  
  275. -- part 18 (button)
  276. -- low flags: 00
  277. -- high flags: 0000
  278. -- rect: left=313 top=250 right=282 bottom=357
  279. -- title width / last selected line: 0
  280. -- icon id / first selected line: 13417 / 13417
  281. -- text alignment: 1
  282. -- font id: 0
  283. -- text size: 12
  284. -- style flags: 0
  285. -- line height: 16
  286. -- part name: coin
  287.  
  288.  
  289. -- part 19 (button)
  290. -- low flags: 00
  291. -- high flags: 0000
  292. -- rect: left=282 top=253 right=285 bottom=326
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 13417 / 13417
  295. -- text alignment: 1
  296. -- font id: 0
  297. -- text size: 12
  298. -- style flags: 0
  299. -- line height: 16
  300. -- part name: coin
  301.  
  302.  
  303. -- part contents for background part 3
  304. ----- text -----
  305. World 5
  306.  
  307. -- part contents for background part 6
  308. ----- text -----
  309. 17
  310.  
  311. -- part contents for background part 5
  312. ----- text -----
  313. ΓÇó ΓÇó ΓÇó ΓÇó